package com.a01_2021.thousandstimes.general.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.general.entity.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author FRQ
 * @since 2021-02-22
 */
public interface SysMenuService extends IService<SysMenu> {

    boolean isMenu(Set<Long> setMenuList);

    boolean isMenu(String menuName);

    boolean isMenu(long menuId);

    SysMenu addMenu(String menuName, String url) throws CustomException;

    void removeMenu(long menuId) throws CustomException;

    List<SysMenu> getMenuFromMaster();
}
